package com.homegoods.orderinfodetail.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.homegoods.orderinfodetail.R;
import com.kedll.library.adapter.MyArrayAdapter;
import com.kedll.library.util.BindingUtil;

/**
 * @author QiQi
 * @ClassName: CommentImageAdapter
 * @date 2018/9/21
 * @description 评论图片适配器
 */
public class CommentImageAdapter extends MyArrayAdapter<String> {
    public CommentImageAdapter(Context context) {
        super(context);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        if (convertView == null) {
            convertView = mInflater.inflate(R.layout.info_item_comment_img, null, false);
        }

        ImageView imageView = ViewHolder.getView(convertView, R.id.iv_comment_img);

        BindingUtil.loadImageNoTransform(imageView, getItem(position), null, null);
        return convertView;
    }
}
